<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link href="/dtpr/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="/dtpr/Flat-UI/css/flat-ui.min.css" rel="stylesheet" type="text/css">
    <link href="/dtpr/css/home.css" rel="stylesheet" type="text/css">
    <link href="/dtpr/css/exam.css" rel="stylesheet" type="text/css">
    <script src="/dtpr/bootstrap/js/jquery-3.2.1.min.js"></script>
    <script src="/dtpr/ckeditor/ckeditor.js"></script>
    <script src="/dtpr/js/home.js"></script>
    <script src="/dtpr/html/background/exam/js/online.js"></script>
    <script src="/dtpr/html/background/exam/js/readingComprehension.js"></script>
    <title>题目管理</title>
</head>
<body>
<!--网页头-->
<script src="/dtpr/js/bgHead.js"></script>
<!--网页体-->
<div class="main">
    <div class="p-body">
        <!--章节选择区-->
        <div class="container">
            <div class="col-sm-3"></div>
            <div class="col-sm-6">
                <div class="panel panel-primary">
                    <div class="panel-heading text-center">
                        请选择需要修改的章节
                    </div>
                    <div class="panel-body">
                        <!--选择信息-->
                        <div class="set-select text-center">
                            <select class="form-control" id="subject">
                                <option selected value="0">请选择科目</option>
                            </select>
                        </div>
                        <div class="set-select text-center">
                            <select class="form-control" id="volume">
                                <option selected value="0">请选择册次</option>
                            </select>
                        </div>
                        <div class="set-select text-center">
                            <select class="form-control" id="section">
                                <option selected value="0">请选择章节</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
        <!--表格区-->
        <div class="container-fluid">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>#</th>
                    <th>题目类型</th>
                    <th>难度</th>
                    <th>题目信息</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
            <!--分页栏-->
            <div id="page" class="text-center">
            </div>
        </div>
        <!--modal区-->
        <div>
            <!--通用modal-->
            <div class="modal fade" id="modal-general" tabindex="-1" role="dialog" data-backdrop="static">
                <div class="modal-dialog modal-lg" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title">题目修改</h4>
                        </div>
                        <div class="modal-body">
                            <form class="form-horizontal">
                                <input type="hidden" name="type">
                                <input type="hidden" name="questionid">
                                <!--题目内容-->
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">
                                        <h3>题目内容</h3>
                                    </label>
                                    <div class="col-sm-10">
                        <textarea name="args[question]" rows="10" id="generalContainer" cols="80">
                        </textarea>
                                        <script>
                                            CKEDITOR.replace('generalContainer');
                                        </script>
                                    </div>
                                </div>
                                <!--答案-->
                                <div class="answer-block">
                                </div>
                                <!--详解-->
                                <div class='form-group'>
                                    <label class='col-sm-2 control-label'><h3>详解</h3></label>
                                    <div class='col-sm-10'>
                            <textarea name='args[questiondescribe]' rows='4' id='generalAnswer' cols='80'>
                            </textarea>
                                        <script>
                                            CKEDITOR.replace('generalAnswer');
                                        </script>
                                    </div>
                                </div>
                                <!--难度选择-->
                                <div class="form-group level" id="general-level">
                                    <label class="col-sm-2 control-label">难度：</label>
                                    <div class="col-sm-10 text-left">
                                        <input type="radio" name="args[questionlevel]" value="1">易　
                                        <input type="radio" name="args[questionlevel]" value="2">中　
                                        <input type="radio" name="args[questionlevel]" value="3">难
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                            <button class="btn btn-info" onclick="submitEdit(1)">修改</button>
                            <button class="btn btn-default" data-dismiss="modal">取消</button>
                        </div>
                    </div>
                </div>
            </div>
            <!--阅读题modal-->
            <div class="modal fade" id="modal-reading" tabindex="-1" role="dialog" data-backdrop="static">
                <div class="modal-dialog modal-lg" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title">题目修改</h4>
                        </div>
                        <div class="modal-body">
                            <form class="form-horizontal">
                                <input type="hidden" name="questionid">
                                <input type="hidden" name="type" value="4">
                                <!--题目内容-->
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">
                                        <h3>文章内容</h3>
                                    </label>
                                    <div class="col-sm-10">
                                        <textarea name="content" rows="10" id="container" cols="80">
                                        </textarea>
                                        <script>
                                            CKEDITOR.replace('container');
                                        </script>
                                    </div>
                                </div>
                                <!--难度选择-->
                                <div class="form-group level">
                                    <label class="col-sm-2 control-label">难度：</label>
                                    <div class="col-sm-10 text-left">
                                        <input type="radio" name="args[questionlevel]" value="1">易　
                                        <input type="radio" name="args[questionlevel]" value="2">中　
                                        <input type="radio" name="args[questionlevel]" value="3">难
                                    </div>
                                </div>
                                <!--modal生成处-->
                                <div id="modal-create">

                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                            <button class="btn btn-info" onclick="submitEdit(2)">修改</button>
                            <button class="btn btn-default" data-dismiss="modal">取消</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--网页脚-->
<script src="/dtpr/js/foot.js"></script>
<script src="/dtpr/html/background/exam/js/editTopic.js"></script>
<script src="/dtpr/js/select.js"></script>
<script src="/dtpr/Flat-UI/js/flat-ui.min.js"></script>
<script src="/dtpr/html/background/exam/js/validation.js"></script>
</body>
</html>